package com.ruoyi.forum.domain;

import com.ruoyi.forum.domain.vo.CollectUpvote;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 论坛-贴子对象 forum_post
 * 
 * @author ruoyi
 * @date 2024-02-11
 */
public class ForumPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 贴子ID */
    private Long id;

    /** 贴子所属的用户ID */
    @Excel(name = "贴子所属的用户ID")
    private Long userId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 收藏数 */
    @Excel(name = "收藏数")
    private Long collectNumber;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long upvoteNumber;

    /** 评论数 */
    @Excel(name = "评论数")
    private Long reviewNumber;

    /** 状态（字典-0：正常，1：冻结） */
    @Excel(name = "状态", readConverterExp = "字=典-0：正常，1：冻结")
    private String state;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    /** 学生信息 */
    private ForumStudent forumStudent;

    /** 收藏和点赞-查询信息 */
    private CollectUpvote collectUpvote;

    public CollectUpvote getCollectUpvote() {
        return collectUpvote;
    }

    public void setCollectUpvote(CollectUpvote collectUpvote) {
        this.collectUpvote = collectUpvote;
    }

    public ForumStudent getForumStudent() {
        return forumStudent;
    }

    public void setForumStudent(ForumStudent forumStudent) {
        this.forumStudent = forumStudent;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCollectNumber(Long collectNumber) 
    {
        this.collectNumber = collectNumber;
    }

    public Long getCollectNumber() 
    {
        return collectNumber;
    }
    public void setUpvoteNumber(Long upvoteNumber) 
    {
        this.upvoteNumber = upvoteNumber;
    }

    public Long getUpvoteNumber() 
    {
        return upvoteNumber;
    }
    public void setReviewNumber(Long reviewNumber) 
    {
        this.reviewNumber = reviewNumber;
    }

    public Long getReviewNumber() 
    {
        return reviewNumber;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("collectNumber", getCollectNumber())
            .append("upvoteNumber", getUpvoteNumber())
            .append("reviewNumber", getReviewNumber())
            .append("state", getState())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("forumStudent", getForumStudent())
            .toString();
    }
}
